import Vue from 'vue'
import App from './App.vue'
import router from './router'
import MyTabbar from './components/Tabbar'
import Sweripe from './components/Sweripe.vue'
import store from './store/index'


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import { Button,Toast,Loading,Tabbar, TabbarItem,Swipe, SwipeItem,Search,List } from 'vant';
Vue.use(List);
Vue.use(Search);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Button);
Vue.use(Toast);
Vue.use(Loading);

Vue.component('Tabbar',MyTabbar);
Vue.component('Sweripe',Sweripe);

Vue.config.productionTip = false



new Vue({
  router, //将router挂载到根实例上
  store, //将store挂载到根实例上, 在任何一个组件中通过 组件实例this 就可以获取到store, 即 this.$store
  render: h => h(App)
}).$mount('#app')
